<!DOCTYPE html>












  


<html class="theme-next muse use-motion" lang="cn">
<head>
  <meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2"/>
<meta name="theme-color" content="#222">






  
  
    
      
    
    
      
    
  <script src="//cdn.bootcss.com/pace/1.0.2/pace.min.js"></script>
  <link href="//cdn.bootcss.com/pace/1.0.2/themes/blue/pace-theme-flash.min.css" rel="stylesheet">







<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />



















  
  
  
  

  
    
    
  

  
    
      
    

    
  

  

  
    
      
    

    
  

  
    
      
    

    
  

  
    
    
    <link href="//fonts.googleapis.com/css?family=Lato:300,300italic,400,400italic,700,700italic|Monda:300,300italic,400,400italic,700,700italic|Lobster Two:300,300italic,400,400italic,700,700italic|PT Mono:300,300italic,400,400italic,700,700italic&subset=latin,latin-ext" rel="stylesheet" type="text/css">
  






  

<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" type="text/css" />

<link href="/css/main.css?v=6.4.0" rel="stylesheet" type="text/css" />


  <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png?v=6.4.0">


  <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32-next.png?v=6.4.0">


  <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16-next.png?v=6.4.0">


  <link rel="mask-icon" href="/images/logo.svg?v=6.4.0" color="#222">









<script type="text/javascript" id="hexo.configurations">
  var NexT = window.NexT || {};
  var CONFIG = {
    root: '/',
    scheme: 'Muse',
    version: '6.4.0',
    sidebar: {"position":"left","display":"post","offset":12,"b2t":false,"scrollpercent":false,"onmobile":false},
    fancybox: false,
    fastclick: false,
    lazyload: false,
    tabs: true,
    motion: {"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}},
    algolia: {
      applicationID: '',
      apiKey: '',
      indexName: '',
      hits: {"per_page":10},
      labels: {"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}
    }
  };
</script>


  




  <meta name="description" content="“想与你赏流河山川，踏青山风光无限，樵采打渔为生，尽是梦里的人间。”  菜鸡来写wp啦…">
<meta name="keywords" content="CTF,hgame2019">
<meta property="og:type" content="article">
<meta property="og:title" content="hgame2019解题记录">
<meta property="og:url" content="https://lengjibo.github.io/hgame2019解题记录/index.html">
<meta property="og:site_name" content="冷逸的个人博客|开往安河桥北~">
<meta property="og:description" content="“想与你赏流河山川，踏青山风光无限，樵采打渔为生，尽是梦里的人间。”  菜鸡来写wp啦…">
<meta property="og:locale" content="cn">
<meta property="og:image" content="https://i.screenshot.net/v44lntd">
<meta property="og:image" content="https://i.screenshot.net/4xxn9i2">
<meta property="og:image" content="https://i.screenshot.net/kg48rip">
<meta property="og:image" content="https://i.screenshot.net/13e60fw">
<meta property="og:image" content="https://i.screenshot.net/enxn2um">
<meta property="og:image" content="https://i.screenshot.net/ljqjdh9">
<meta property="og:updated_time" content="2020-03-27T10:10:05.508Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="hgame2019解题记录">
<meta name="twitter:description" content="“想与你赏流河山川，踏青山风光无限，樵采打渔为生，尽是梦里的人间。”  菜鸡来写wp啦…">
<meta name="twitter:image" content="https://i.screenshot.net/v44lntd">



  <link rel="alternate" href="/../../.deploy_git/atom.xml" title="冷逸的个人博客|开往安河桥北~" type="application/atom+xml" />




  <link rel="canonical" href="https://lengjibo.github.io/hgame2019解题记录/"/>



<script type="text/javascript" id="page.configurations">
  CONFIG.page = {
    sidebar: "",
  };
</script>

  <title>hgame2019解题记录 | 冷逸的个人博客|开往安河桥北~</title>
  









  <noscript>
  <style type="text/css">
    .use-motion .motion-element,
    .use-motion .brand,
    .use-motion .menu-item,
    .sidebar-inner,
    .use-motion .post-block,
    .use-motion .pagination,
    .use-motion .comments,
    .use-motion .post-header,
    .use-motion .post-body,
    .use-motion .collection-title { opacity: initial; }

    .use-motion .logo,
    .use-motion .site-title,
    .use-motion .site-subtitle {
      opacity: initial;
      top: initial;
    }

    .use-motion {
      .logo-line-before i { left: initial; }
      .logo-line-after i { right: initial; }
    }
  </style>
</noscript>

</head>

<body itemscope itemtype="http://schema.org/WebPage" lang="cn">

  
  
    
  

  <div class="container sidebar-position-left page-post-detail">
    <div class="headband"></div>

    <header id="header" class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-wrapper">
  <div class="site-meta ">
    

    <div class="custom-logo-site-title">
      <a href="/" class="brand" rel="start">
        <span class="logo-line-before"><i></i></span>
        <span class="site-title">冷逸的个人博客|开往安河桥北~</span>
        <span class="logo-line-after"><i></i></span>
      </a>
    </div>
    
  </div>

  <div class="site-nav-toggle">
    <button aria-label="Toggle navigation bar">
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
    </button>
  </div>
</div>



<nav class="site-nav">
  
    <ul id="menu" class="menu">
      
        
        
        
          
          <li class="menu-item menu-item-home">
    <a href="/" rel="section">
      <i class="menu-item-icon fa fa-fw fa-home"></i> <br />Startseite</a>
  </li>
        
        
        
          
          <li class="menu-item menu-item-about">
    <a href="/about/" rel="section">
      <i class="menu-item-icon fa fa-fw fa-user"></i> <br />Über</a>
  </li>
        
        
        
          
          <li class="menu-item menu-item-tags">
    <a href="/tags/" rel="section">
      <i class="menu-item-icon fa fa-fw fa-tags"></i> <br />Tags</a>
  </li>
        
        
        
          
          <li class="menu-item menu-item-categories">
    <a href="/categories/" rel="section">
      <i class="menu-item-icon fa fa-fw fa-th"></i> <br />Kategorien</a>
  </li>
        
        
        
          
          <li class="menu-item menu-item-archives">
    <a href="/archives/" rel="section">
      <i class="menu-item-icon fa fa-fw fa-archive"></i> <br />Archiv</a>
  </li>
        
        
        
          
          <li class="menu-item menu-item-book">
    <a href="/book/" rel="section">
      <i class="menu-item-icon fa fa-fw fa-book"></i> <br />book</a>
  </li>

      
      
    </ul>
  

  
    

  

  
</nav>



  



</div>
    </header>

    


    <main id="main" class="main">
      <div class="main-inner">
        <div class="content-wrap">
          
          <div id="content" class="content">
            

  <div id="posts" class="posts-expand">
    

  

  
  
  

  

  <article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
  
  
  
  <div class="post-block">
    <link itemprop="mainEntityOfPage" href="https://lengjibo.github.io/hgame2019解题记录/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="name" content="冷逸">
      <meta itemprop="description" content="做一个温柔的人...">
      <meta itemprop="image" content="http://ww1.sinaimg.cn/large/007F8GgBly1g7vony4ltaj308w08wq30.jpg">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="冷逸的个人博客|开往安河桥北~">
    </span>

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">hgame2019解题记录
              
            
          </h1>
        

        <div class="post-meta">
        
          <span class="post-time">

            
            
            

            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">Veröffentlicht am</span>
              

              
                
              

              <time title="Post created: 2019-01-26 21:15:46" itemprop="dateCreated datePublished" datetime="2019-01-26T21:15:46+08:00">2019-01-26</time>
            

            
              

              
                
                <span class="post-meta-divider">|</span>
                

                <span class="post-meta-item-icon">
                  <i class="fa fa-calendar-check-o"></i>
                </span>
                
                  <span class="post-meta-item-text">Edited on</span>
                
                <time title="Updated at: 2020-03-27 18:10:05" itemprop="dateModified" datetime="2020-03-27T18:10:05+08:00">2020-03-27</time>
              
            
          </span>

          
            <span class="post-category" >
            
              <span class="post-meta-divider">|</span>
            
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              
                <span class="post-meta-item-text">in</span>
              
              
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing"><a href="/categories/CTF/" itemprop="url" rel="index"><span itemprop="name">CTF</span></a></span>

                
                
              
            </span>
          

          
            
          

          
          

          
            <span class="post-meta-divider">|</span>
            <span class="post-meta-item-icon"
            >
            <i class="fa fa-eye"></i>
             Views:  
            <span class="busuanzi-value" id="busuanzi_value_page_pv" ></span>
            </span>
          

          

          

        </div>
      </header>
    

    
    
    
    <div class="post-body" itemprop="articleBody">

      
      

      
        <p>“想与你赏流河山川，踏青山风光无限，樵采打渔为生，尽是梦里的人间。”</p>
<hr>
<p>菜鸡来写wp啦…</p>
<a id="more"></a>
<h2 id="Level-Week-1"><a href="#Level-Week-1" class="headerlink" title="Level - Week 1"></a>Level - Week 1</h2><h3 id="WEB"><a href="#WEB" class="headerlink" title="WEB"></a>WEB</h3><h4 id="谁吃了我的flag"><a href="#谁吃了我的flag" class="headerlink" title="谁吃了我的flag"></a>谁吃了我的flag</h4><p>first </p>
<p>根据题目描述，vim、未正常关机…</p>
<p>估计也就是考察vimbak的知识，意外退出时，并不会覆盖旧的交换文件，而是会重新生成新的交换文件。而原来的文件中并不会有这次的修改，文件内容还是和打开时一样。</p>
<p>第一次产生的交换文件名为“.file.txt.swp”；再次意外退出后，将会产生名为“.file.txt.swo”的交换文件；而第三次产生的交换文件则为“.file.txt.swn”；依此类推。</p>
<p>关于这个，我们可以使用xql7的tools扫描下，虽然写的不是很好,有时间改进下…</p>
<p><img src="https://i.screenshot.net/v44lntd" alt=""></p>
<p>发现敏感文件，访问之，提示404…</p>
<p>误报严重啊，其实是工具的规则问题..</p>
<p>果断手工找到swp备份地址</p>
<p> <a href="http://118.25.111.31:10086/.index.html.swp" target="_blank" rel="noopener">http://118.25.111.31:10086/.index.html.swp</a></p>
<p>curl访问输出之…</p>
<p><img src="https://i.screenshot.net/4xxn9i2" alt=""></p>
<p>得到flag</p>
<h4 id="换头大作战"><a href="#换头大作战" class="headerlink" title="换头大作战"></a>换头大作战</h4><p>打开后一个输入框，随意输入</p>
<p>提示</p>
<blockquote>
<p>request method is error.I think POST is better</p>
</blockquote>
<p>使用hackbar的post提交后提示</p>
<blockquote>
<p><a href="https://www.wikiwand.com/en/X-Forwarded-For" target="_blank" rel="noopener">https://www.wikiwand.com/en/X-Forwarded-For</a><br>only localhost can get flag</p>
</blockquote>
<p>emmm，只能改xff了</p>
<p><img src="https://i.screenshot.net/kg48rip" alt=""></p>
<p>唉..继续改..</p>
<p><img src="https://i.screenshot.net/13e60fw" alt=""></p>
<p>呵，B站，看来出题人也是个人才..</p>
<p>看到了admin=0，随手改为1</p>
<p>提交后，flag到手..</p>
<h4 id="very-easy-web"><a href="#very-easy-web" class="headerlink" title="very easy web"></a>very easy web</h4><pre><code>
<?php
error_reporting(0);
include("flag.php");

if(strpos("vidar",$_GET['id'])!==FALSE)
  die("<p>干巴爹<p></p>");

$_GET['id'] = urldecode($_GET['id']);
if($_GET['id'] === "vidar")
{
  echo $flag;
}
highlight_file(__FILE__);
?>
</code></pre>

<p>代码审计啦..</p>
<p>一开始看到strpos和urldecode还以为是数组加二次编码，后来才发现用不到..</p>
<p>大体思路如下：</p>
<p>使用GET方式接收id的参数值与vidar进行比较，如果相同则输出“干巴爹”，若不同‘<br>则进行url解码，再与vidar进行比较，相同则输出flag</p>
<p>看似是有逻辑问题的，但是，在php中get接收参数时默认会进行一次url解码，然后urlcode<br>又会进行一次解码，所以我们只需要对vidar中的一个字母进行两次编码即可，</p>
<p>最后的payload如下：</p>
<blockquote>
<p>?id=%25%37%36idar</p>
</blockquote>
<h4 id="can-u-find-me"><a href="#can-u-find-me" class="headerlink" title="can u find me?"></a>can u find me?</h4><p>为什么不问问神奇的十二姑娘和她的小伙伴呢</p>
<p>既然这么说了，那就f12</p>
<p>发现f12.php，访问之提示：</p>
<blockquote>
<p>yeah!you find the gate<br>but can you find the password?<br>please post password to me! I will open the gate for you!</p>
</blockquote>
<p>刷新页面在请求里发现password</p>
<p>hackbar提交之，出现click me to get flag</p>
<p>点击提示</p>
<p>aoh,your speed is sososo fast,the flag must have been left in somewhere</p>
<p>感觉像是302跳转，bp抓包查看</p>
<p>得到flag</p>
<h3 id="misc"><a href="#misc" class="headerlink" title="misc"></a>misc</h3><h4 id="Hidden-Image-in-LSB"><a href="#Hidden-Image-in-LSB" class="headerlink" title="Hidden Image in LSB"></a>Hidden Image in LSB</h4><p>给你脚本了，跑一下就出来了..</p>
<p>送分题..</p>
<p>有个神器叫 stegsolve，利用它可以直接提取本题 flag</p>
<h4 id="打字机"><a href="#打字机" class="headerlink" title="打字机"></a>打字机</h4><p>两张图，对照得出flag</p>
<h4 id="Broken-Chest"><a href="#Broken-Chest" class="headerlink" title="Broken Chest"></a>Broken Chest</h4><p>一个压缩包，7z打开失败，扫描提示不是压缩包，binwalk提取发现文件尾，以及</p>
<blockquote>
<p>S0mETh1ng_U5efuL</p>
</blockquote>
<p>010 Editor打开发现缺少文件头，补齐，打开提示密码，尝试伪加密失败，将得到<br>的密码输入，得到flag</p>
<h4 id="无字天书"><a href="#无字天书" class="headerlink" title="无字天书"></a>无字天书</h4><p>一个数据包分析..</p>
<p>http中下载压缩包，密码不全，</p>
<p>然后不会了…</p>
<h2 id="Level-Week-2"><a href="#Level-Week-2" class="headerlink" title="Level - Week 2"></a>Level - Week 2</h2><p>质量直接上一层啊，这代码审计做的我哦…</p>
<p>流下来了没有技术的泪水.jpg</p>
<h3 id="web"><a href="#web" class="headerlink" title="web"></a>web</h3><h4 id="easy-php"><a href="#easy-php" class="headerlink" title="easy_php"></a>easy_php</h4><p>代码审计..</p>
<p>打开网页，标题处显示robots信息，访问得到/img/index.php这个路径<br>访问得到如下代码</p>
<p><img src="https://i.screenshot.net/enxn2um" alt=""></p>
<p>思路很明确，文件包含，绕过../去访问flag.php，str_replace有漏洞，….//或者…/.<br>/都可以绕过，然后伪协议读源码</p>
<p>payload如下：</p>
<blockquote>
<p><a href="http://118.24.25.25:9999/easyphp/img/index.php?img=php://filter/read=convert.base64-encode//resource=....//flag" target="_blank" rel="noopener">http://118.24.25.25:9999/easyphp/img/index.php?img=php://filter/read=convert.base64-encode//resource=....//flag</a></p>
</blockquote>
<h4 id="php-trick"><a href="#php-trick" class="headerlink" title="php trick"></a>php trick</h4><p>很单纯的代码审计加ssrf(可能不太准确)</p>
<p>打开后</p>
<p><img src="https://i.screenshot.net/ljqjdh9" alt=""></p>
<p>没什么难的依次绕过就行了..</p>
<p>就行了..</p>
<p>行了..</p>
<p>了.</p>
<p>推荐down下来在本地做，不然容易乱…</p>
<p>先上payload：</p>
<blockquote>
<p><a href="http://118.24.3.214:3001/?str1=s878926199a&amp;str2=s214587387a&amp;str3=%4d%c9%68%ff%0e%e3%5c%20%95%72%d4%77%7b%72%15%87%d3%6f%a7%b2%1b%dc%56%b7%4a%3d%c0%78%3e%7b%95%18%af%bf%a2%00%a8%28%4b%f3%6e%8e%4b%55%b3%5f%42%75%93%d8%49%67%6d%a0%d1%55%5d%83%60%fb%5f%07%fe%a2&amp;str4=%4d%c9%68%ff%0e%e3%5c%20%95%72%d4%77%7b%72%15%87%d3%6f%a7%b2%1b%dc%56%b7%4a%3d%c0%78%3e%7b%95%18%af%bf%a2%02%a8%28%4b%f3%6e%8e%4b%55%b3%5f%42%75%93%d8%49%67%6d%a0%d1%d5%5d%83%60%fb%5f%07%fe%a2&amp;H.game[]=9e99&amp;url=http://foo@0x7f000001:80@www.baidu.com/admin.php?filename=php://filter/convert.base64-encode/resource=flag.php" target="_blank" rel="noopener">http://118.24.3.214:3001/?str1=s878926199a&amp;str2=s214587387a&amp;str3=%4d%c9%68%ff%0e%e3%5c%20%95%72%d4%77%7b%72%15%87%d3%6f%a7%b2%1b%dc%56%b7%4a%3d%c0%78%3e%7b%95%18%af%bf%a2%00%a8%28%4b%f3%6e%8e%4b%55%b3%5f%42%75%93%d8%49%67%6d%a0%d1%55%5d%83%60%fb%5f%07%fe%a2&amp;str4=%4d%c9%68%ff%0e%e3%5c%20%95%72%d4%77%7b%72%15%87%d3%6f%a7%b2%1b%dc%56%b7%4a%3d%c0%78%3e%7b%95%18%af%bf%a2%02%a8%28%4b%f3%6e%8e%4b%55%b3%5f%42%75%93%d8%49%67%6d%a0%d1%d5%5d%83%60%fb%5f%07%fe%a2&amp;H.game[]=9e99&amp;url=http://foo@0x7f000001:80@www.baidu.com/admin.php?filename=php://filter/convert.base64-encode/resource=flag.php</a></p>
</blockquote>
<p>首先两个字符串不等、md5值相等，使用md5碰撞即可，再往下使用！==进行判断，使用数组或者url编码的形式绕过，接着str5里面不能有H_game，使用.绕过，这是php特性，然后str5不为数字且大于999999999，可以使用数组、%20、%00、1a进行绕过，然后下面其实可以说是一个ssrf，构造url参数，里面需要有<a href="http://www.baidu.com" target="_blank" rel="noopener">www.baidu.com</a> ，http，还记得前面的admin.php吗？我们可以获取他的值，因为访问后知道他需要127.0.0.1访问，使用十六进制构造，这是ssrf的基操，然后得到admin的源码，在使用admin.php中的filename进行读取flag.php的内容，获取到flag</p>
<p>关于ssrf绕过可以查看<a href="https://www.cnblogs.com/afanti/p/9928371.html" target="_blank" rel="noopener">https://www.cnblogs.com/afanti/p/9928371.html</a></p>
<h2 id="Level-Week-3"><a href="#Level-Week-3" class="headerlink" title="Level - Week 3"></a>Level - Week 3</h2><p>越来越不会…</p>
<h3 id="web-1"><a href="#web-1" class="headerlink" title="web"></a>web</h3><h4 id="BabyXss"><a href="#BabyXss" class="headerlink" title="BabyXss"></a>BabyXss</h4><p>开局一个框，后期全靠fuzz，本来是想直接fuzz的，可是fuzz出来的几个发现不能用，于是手工构造payload</p>
<blockquote>
<p>PC9kaXY+PHNjcmlwdCBzcmM9InhzcundefinedundefinedwNaNAiPjwvc2NyPHNjcmlwdD5pcHQ+</p>
</blockquote>
<p>ps:自行base64解码一些，不然博客样式会出问题</p>
<p>验证码使用脚本跑：</p>
<pre><code>
#!/usr/bin/env python
import hashlib

def md5(s):
    return hashlib.md5(s).hexdigest()

for i in range(1, 9999999):
    if md5(str(i)).startswith('00d9'):
        print i

</code></pre>

<h4 id="sqli-1"><a href="#sqli-1" class="headerlink" title="sqli-1"></a>sqli-1</h4><p>一个简单的md5验证。</p>
<p>提交正确的code参数后得到提示 sql error。</p>
<p>同时提交一个id参数得到回显。</p>
<p>然后测试即可，</p>
<h4 id="sqli-2"><a href="#sqli-2" class="headerlink" title="sqli-2"></a>sqli-2</h4><p>盲注版本，由于只会告诉你sql语句是否执行，所以bool盲注显然不行。</p>
<p>可以使用时间盲注</p>
<p>Payload :</p>
<blockquote>
<p>1 and if((1=2),exp(999999999),1)#</p>
</blockquote>
<h4 id="基础渗透"><a href="#基础渗透" class="headerlink" title="基础渗透"></a>基础渗透</h4><p>首先存在文件包含</p>
<blockquote>
<p><a href="http://111.231.140.29:10080/index.php?action=php://filter/read=convert.base64-encode/resource=login" target="_blank" rel="noopener">http://111.231.140.29:10080/index.php?action=php://filter/read=convert.base64-encode/resource=login</a></p>
</blockquote>
<p>然后</p>
<p>在messge_id处进行注入。</p>
<p>我们先随意上传一张图片，让他生成一个文件名。</p>
<p>通过python脚本，进行注入得到文件名。</p>
<p>Ps:注入时需要有留言存在，所以编写脚本时每次注入前先进行留言。</p>
<p>token会失效，所以每次注入前获取一次最新的token。</p>
<p>文件包含处强制拼接了php后缀</p>
<p>将一句话木马文件index.php压缩成一个zip，抓包修改type为 image/png将zip文件上传。然后利用phar协议包含文件getshell。</p>
<blockquote>
<p>?action=phar://./img/avatar/xxxxx.png/index</p>
</blockquote>

      
    </div>

    

    
    
    

    <div>
      
        
<div class="my_post_copyright">
  <script src="//cdn.bootcss.com/clipboard.js/1.5.10/clipboard.min.js"></script>
  
  <!-- JS库 sweetalert 可修改路径 -->
  <script src="https://cdn.bootcss.com/jquery/2.0.0/jquery.min.js"></script>
  <script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
  <p><span>本文标题:</span><a href="/hgame2019解题记录/">hgame2019解题记录</a></p>
  <p><span>文章作者:</span><a href="/" title="访问 冷逸 的个人博客">冷逸</a></p>
  <p><span>发布时间:</span>2019年01月26日 - 21:01</p>
  <p><span>最后更新:</span>2020年03月27日 - 18:03</p>
  <p><span>原始链接:</span><a href="/hgame2019解题记录/" title="hgame2019解题记录">https://lengjibo.github.io/hgame2019解题记录/</a>
    <span class="copy-path"  title="点击复制文章链接"><i class="fa fa-clipboard" data-clipboard-text="https://lengjibo.github.io/hgame2019解题记录/"  aria-label="复制成功！"></i></span>
  </p>
  <p><span>许可协议:</span><i class="fa fa-creative-commons"></i> <a rel="license" href="https://creativecommons.org/licenses/by-nc-nd/4.0/" target="_blank" title="Attribution-NonCommercial-NoDerivatives 4.0 International (CC BY-NC-ND 4.0)">署名-非商业性使用-禁止演绎 4.0 国际</a> 转载请保留原文链接及作者。</p>  
</div>
<script> 
    var clipboard = new Clipboard('.fa-clipboard');
    $(".fa-clipboard").click(function(){
      clipboard.on('success', function(){
        swal({   
          title: "",   
          text: '复制成功',
          icon: "success", 
          showConfirmButton: true
          });
    });
    });  
</script>


      
    </div>
    <div>
      
        <div>
    
        <div style="text-align:center;color: #555;font-size:14px;">-------------The End-------------</div>
    
</div>

      
    </div>
    

    
      <div>
        <div style="padding: 10px 0; margin: 20px auto; width: 90%; text-align: center;">
  <div>坚持原创技术分享，您的支持将鼓励我继续创作！</div>
  <button id="rewardButton" disable="enable" onclick="var qr = document.getElementById('QR'); if (qr.style.display === 'none') {qr.style.display='block';} else {qr.style.display='none'}">
    <span>Donate</span>
  </button>
  <div id="QR" style="display: none;">

    
      <div id="wechat" style="display: inline-block">
        <img id="wechat_qr" src="/images/wechat.png" alt="冷逸 WeChat Pay"/>
        <p>WeChat Pay</p>
      </div>
    

    
      <div id="alipay" style="display: inline-block">
        <img id="alipay_qr" src="/images/zhifubao.jpg" alt="冷逸 Alipay"/>
        <p>Alipay</p>
      </div>
    

    

  </div>
</div>

      </div>
    

    

    <footer class="post-footer">
      
        <div class="post-tags">
          
            <a href="/tags/CTF/" rel="tag"><i class="fa fa-tag"></i> CTF</a>
          
            <a href="/tags/hgame2019/" rel="tag"><i class="fa fa-tag"></i> hgame2019</a>
          
        </div>
      

      
      
        <div class="post-widgets">
        

        

        
          
          <div class="social_share">
            
               <div>
                 
  <div class="bdsharebuttonbox">
    <a href="#" class="bds_tsina" data-cmd="tsina" title="分享到新浪微博"></a>
    <a href="#" class="bds_douban" data-cmd="douban" title="分享到豆瓣网"></a>
    <a href="#" class="bds_sqq" data-cmd="sqq" title="分享到QQ好友"></a>
    <a href="#" class="bds_qzone" data-cmd="qzone" title="分享到QQ空间"></a>
    <a href="#" class="bds_weixin" data-cmd="weixin" title="分享到微信"></a>
    <a href="#" class="bds_tieba" data-cmd="tieba" title="分享到百度贴吧"></a>
    <a href="#" class="bds_twi" data-cmd="twi" title="分享到Twitter"></a>
    <a href="#" class="bds_fbook" data-cmd="fbook" title="分享到Facebook"></a>
    <a href="#" class="bds_more" data-cmd="more"></a>
    <a class="bds_count" data-cmd="count"></a>
  </div>
  <script>
    window._bd_share_config = {
      "common": {
        "bdText": "",
        "bdMini": "2",
        "bdMiniList": false,
        "bdPic": ""
      },
      "share": {
        "bdSize": "16",
        "bdStyle": "0"
      },
      "image": {
        "viewList": ["tsina", "douban", "sqq", "qzone", "weixin", "twi", "fbook"],
        "viewText": "分享到：",
        "viewSize": "16"
      }
    }
  </script>

<script>
  with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='//bdimg.share.baidu.com/static/api/js/share.js?cdnversion='+~(-new Date()/36e5)];
</script>

               </div>
            
            
          </div>
        
        </div>
      
      

      
        <div class="post-nav">
          <div class="post-nav-next post-nav-item">
            
              <a href="/搭建个人向服务系列/" rel="next" title="搭建个人向服务系列">
                <i class="fa fa-chevron-left"></i> 搭建个人向服务系列
              </a>
            
          </div>

          <span class="post-nav-divider"></span>

          <div class="post-nav-prev post-nav-item">
            
              <a href="/2018年windows漏洞盘点/" rel="prev" title="2018年windows漏洞盘点">
                2018年windows漏洞盘点 <i class="fa fa-chevron-right"></i>
              </a>
            
          </div>
        </div>
      

      
      
    </footer>
  </div>
  
  
  
  </article>


  </div>


          </div>
          

  



        </div>
        
          
  
  <div class="sidebar-toggle">
    <div class="sidebar-toggle-line-wrap">
      <span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
    </div>
  </div>

  <aside id="sidebar" class="sidebar">
    
    <div class="sidebar-inner">

      

      
        <ul class="sidebar-nav motion-element">
          <li class="sidebar-nav-toc sidebar-nav-active" data-target="post-toc-wrap">
            Inhaltsverzeichnis
          </li>
          <li class="sidebar-nav-overview" data-target="site-overview-wrap">
            Übersicht
          </li>
        </ul>
      

      <section class="site-overview-wrap sidebar-panel">
        <div class="site-overview">
          <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
            
              <img class="site-author-image" itemprop="image"
                src="http://ww1.sinaimg.cn/large/007F8GgBly1g7vony4ltaj308w08wq30.jpg"
                alt="冷逸" />
            
              <p class="site-author-name" itemprop="name">冷逸</p>
              <p class="site-description motion-element" itemprop="description">做一个温柔的人...</p>
          </div>

          
            <nav class="site-state motion-element">
              
                <div class="site-state-item site-state-posts">
                
                  <a href="/archives/">
                
                    <span class="site-state-item-count">113</span>
                    <span class="site-state-item-name">Artikel</span>
                  </a>
                </div>
              

              
                
                
                <div class="site-state-item site-state-categories">
                  <a href="/categories/index.html">
                    
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                    <span class="site-state-item-count">19</span>
                    <span class="site-state-item-name">Kategorien</span>
                  </a>
                </div>
              

              
                
                
                <div class="site-state-item site-state-tags">
                  <a href="/tags/index.html">
                    
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                      
                    
                    <span class="site-state-item-count">120</span>
                    <span class="site-state-item-name">Tags</span>
                  </a>
                </div>
              
            </nav>
          

          
            <div class="feed-link motion-element">
              <a href="/../../.deploy_git/atom.xml" rel="alternate">
                <i class="fa fa-rss"></i>
                RSS
              </a>
            </div>
          

          
            <div class="links-of-author motion-element">
              
                <span class="links-of-author-item">
                  <a href="https://github.com/lengjibo" target="_blank" title="GitHub"><i class="fa fa-fw fa-globe"></i>GitHub</a>
                  
                </span>
              
                <span class="links-of-author-item">
                  <a href="qqlengyi@163.com" target="_blank" title="E-Mail"><i class="fa fa-fw fa-globe"></i>E-Mail</a>
                  
                </span>
              
            </div>
          
        <div id="music163player">
            <iframe frameborder="no" border="0" marginwidth="0" marginheight="0" width=330 height=110 src="https://music.163.com/outchain/player?type=0&id=377079922&auto=1&height=90"></iframe>
          </div>
          
          

          
          
            <div class="links-of-blogroll motion-element links-of-blogroll-block">
              <div class="links-of-blogroll-title">
                <i class="fa  fa-fw fa-link"></i>
                友情链接
              </div>
              <ul class="links-of-blogroll-list">
                
                  <li class="links-of-blogroll-item">
                    <a href="https://sqlmap.wiki/" title="青春's blog" target="_blank">青春's blog</a>
                  </li>
                
                  <li class="links-of-blogroll-item">
                    <a href="http://www.addon.pub/" title="Yokeen's blog" target="_blank">Yokeen's blog</a>
                  </li>
                
                  <li class="links-of-blogroll-item">
                    <a href="https://freeerror.org/" title="之乎者也's blog" target="_blank">之乎者也's blog</a>
                  </li>
                
                  <li class="links-of-blogroll-item">
                    <a href="https://www.bugbank.cn/team/FrigidSword" title="漏洞银行" target="_blank">漏洞银行</a>
                  </li>
                
                  <li class="links-of-blogroll-item">
                    <a href="https://www.vulbox.com/team/Frigid%20Sword%E5%AE%89%E5%85%A8%E5%9B%A2%E9%98%9F" title="漏洞盒子" target="_blank">漏洞盒子</a>
                  </li>
                
                  <li class="links-of-blogroll-item">
                    <a href="https://godpang.github.io/" title="Mr.赵" target="_blank">Mr.赵</a>
                  </li>
                
                  <li class="links-of-blogroll-item">
                    <a href="https://amliaw4.github.io/" title="amliaW4'S Blog" target="_blank">amliaW4'S Blog</a>
                  </li>
                
                  <li class="links-of-blogroll-item">
                    <a href="https://www.se7ensec.cn/" title="se7en's Blog" target="_blank">se7en's Blog</a>
                  </li>
                
                  <li class="links-of-blogroll-item">
                    <a href="https://ninjia.gitbook.io/secskill/" title="secskill" target="_blank">secskill</a>
                  </li>
                
                  <li class="links-of-blogroll-item">
                    <a href="http://www.bug1024.cn/" title="ibug" target="_blank">ibug</a>
                  </li>
                
                  <li class="links-of-blogroll-item">
                    <a href="http://wwcx.org/" title="Strjziny's Blog" target="_blank">Strjziny's Blog</a>
                  </li>
                
              </ul>
            </div>
          

          
            
          
          

        </div>
      </section>

      
      <!--noindex-->
        <section class="post-toc-wrap motion-element sidebar-panel sidebar-panel-active">
          <div class="post-toc">

            
              
            

            
              <div class="post-toc-content"><ol class="nav"><li class="nav-item nav-level-2"><a class="nav-link" href="#Level-Week-1"><span class="nav-number">1.</span> <span class="nav-text">Level - Week 1</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#WEB"><span class="nav-number">1.1.</span> <span class="nav-text">WEB</span></a><ol class="nav-child"><li class="nav-item nav-level-4"><a class="nav-link" href="#谁吃了我的flag"><span class="nav-number">1.1.1.</span> <span class="nav-text">谁吃了我的flag</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#换头大作战"><span class="nav-number">1.1.2.</span> <span class="nav-text">换头大作战</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#very-easy-web"><span class="nav-number">1.1.3.</span> <span class="nav-text">very easy web</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#can-u-find-me"><span class="nav-number">1.1.4.</span> <span class="nav-text">can u find me?</span></a></li></ol></li><li class="nav-item nav-level-3"><a class="nav-link" href="#misc"><span class="nav-number">1.2.</span> <span class="nav-text">misc</span></a><ol class="nav-child"><li class="nav-item nav-level-4"><a class="nav-link" href="#Hidden-Image-in-LSB"><span class="nav-number">1.2.1.</span> <span class="nav-text">Hidden Image in LSB</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#打字机"><span class="nav-number">1.2.2.</span> <span class="nav-text">打字机</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#Broken-Chest"><span class="nav-number">1.2.3.</span> <span class="nav-text">Broken Chest</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#无字天书"><span class="nav-number">1.2.4.</span> <span class="nav-text">无字天书</span></a></li></ol></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#Level-Week-2"><span class="nav-number">2.</span> <span class="nav-text">Level - Week 2</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#web"><span class="nav-number">2.1.</span> <span class="nav-text">web</span></a><ol class="nav-child"><li class="nav-item nav-level-4"><a class="nav-link" href="#easy-php"><span class="nav-number">2.1.1.</span> <span class="nav-text">easy_php</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#php-trick"><span class="nav-number">2.1.2.</span> <span class="nav-text">php trick</span></a></li></ol></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#Level-Week-3"><span class="nav-number">3.</span> <span class="nav-text">Level - Week 3</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#web-1"><span class="nav-number">3.1.</span> <span class="nav-text">web</span></a><ol class="nav-child"><li class="nav-item nav-level-4"><a class="nav-link" href="#BabyXss"><span class="nav-number">3.1.1.</span> <span class="nav-text">BabyXss</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#sqli-1"><span class="nav-number">3.1.2.</span> <span class="nav-text">sqli-1</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#sqli-2"><span class="nav-number">3.1.3.</span> <span class="nav-text">sqli-2</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#基础渗透"><span class="nav-number">3.1.4.</span> <span class="nav-text">基础渗透</span></a></li></ol></li></ol></li></ol></div>
            

          </div>
        </section>
      <!--/noindex-->
      

      

    </div>
  </aside>


        
      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="footer-inner">
        <div class="copyright">&copy; 2014 – <span itemprop="copyrightYear">2020</span>
  <span class="with-love" id="animate">
    <i class="fa fa-user"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">冷逸</span>

  

  
</div>




  <div class="powered-by">Erstellt mit  <a class="theme-link" target="_blank" href="https://hexo.io">Hexo</a> v3.7.1</div>



  <span class="post-meta-divider">|</span>



  <div class="theme-info">Theme – <a class="theme-link" target="_blank" href="https://theme-next.org">NexT.Muse</a> v6.4.0</div>






        
<div class="busuanzi-count">
  <script async src="https://busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>

  
    <span class="site-uv" title="Total Visitors">
      <i class="fa fa-user"></i>
      <span class="busuanzi-value" id="busuanzi_value_site_uv"></span>
    </span>
  

  
    <span class="site-pv" title="Total Views">
      <i class="fa fa-eye"></i>
      <span class="busuanzi-value" id="busuanzi_value_site_pv"></span>
    </span>
  
</div>









        
      </div>
    </footer>

    
      <div class="back-to-top">
        <i class="fa fa-arrow-up"></i>
        
      </div>
    

    
	
    

    
  </div>

  

<script type="text/javascript">
  if (Object.prototype.toString.call(window.Promise) !== '[object Function]') {
    window.Promise = null;
  }
</script>














  







  
  







  
  
    <script type="text/javascript" src="//cdn.jsdelivr.net/jquery/2.1.3/jquery.min.js"></script>
  

  
  
    <script type="text/javascript" src="//cdn.jsdelivr.net/velocity/1.2.3/velocity.min.js"></script>
  

  
  
    <script type="text/javascript" src="//cdn.jsdelivr.net/velocity/1.2.3/velocity.ui.min.js"></script>
  

  
  
    <script type="text/javascript" src="//cdn.bootcss.com/canvas-nest.js/1.0.1/canvas-nest.min.js"></script>
  

  
  
    <script type="text/javascript" src="/lib/three/three.min.js"></script>
  

  
  
    <script type="text/javascript" src="/lib/three/canvas_sphere.min.js"></script>
  


  


  <script type="text/javascript" src="/js/src/utils.js?v=6.4.0"></script>

  <script type="text/javascript" src="/js/src/motion.js?v=6.4.0"></script>



  
  

  
  <script type="text/javascript" src="/js/src/scrollspy.js?v=6.4.0"></script>
<script type="text/javascript" src="/js/src/post-details.js?v=6.4.0"></script>



  


  <script type="text/javascript" src="/js/src/bootstrap.js?v=6.4.0"></script>



  



  










  





  

  

  

  

  
  

  

  

  

  

  

<script src="/live2dw/lib/L2Dwidget.min.js?0c58a1486de42ac6cc1c59c7d98ae887"></script><script>L2Dwidget.init({"log":false,"pluginJsPath":"lib/","pluginModelPath":"assets/","pluginRootPath":"live2dw/","tagMode":false});</script></body>
</html>
<script type="text/javascript" src="/js/src/love.js"></script>
